In the previous video, you saw a demonstration wherein a continue activity is used inside the loop that identifies even numbers
from a list of numbers. In this video you
will understand the parallel activity,
so let's get started. The parallel activity executes child activities in parallel. This means that by
using parallel, multiple activities can
be exited side by side. It is helpful when
there is a need to run several processes
at the same time. A parallel activity
let's you schedule two or more child
activity branches for processing simultaneously, however, it cannot run multiple processes in the
foreground at the same time. To run more than one process
at the same time you must choose a single activity branch to run in the foreground, and the remaining
activity branches must run in the background. You can use Send
Window Messages and/or Simulate Type property of the activities for this purpose. If Send Window Messages or
Simulate Type is not used, then parallel activity
begins processing with the execution of one
activity branch at a time. It completes one
activity branch and then randomly picks another
activity branch. It gives the result
randomly when you allow this process in
the parent activity. For example, here
in the workflow, you can see five
type into activities numbered 1-5 placed in
the parallel activity. On execution, the workflow
gives the results randomly, like 34512, 43125, 53142, 32541, etc. In the next video, you will see a
demonstration where in a parallel activity
is used to run two processes in parallel
by writing a piece of text into separate
notepad windows. I would encourage
you to go through the demonstration and attempt
to repeat it on your own. That's it for this video.
Thanks for watching.